<div style="max-height:475px; max-width:840px; overflow-y: auto;">
    <assign name="i_queue" value="1" />
    <foreach name="list" item="vo" key="key" step="0">
        <div class="queue_block">
            <div class="hd">                
                <h3>{$i_queue++}. {$key}<a href="#" name="{$key}" class="lnk_switch">[-]</a><a href="{:AddonU('Statics/call_history_lite','queue='.$key)}" class="lnk_info" data-size='{"width":580,"height":545}' data-title="{$key} 通话详单">[通话详单]</a></h3>
                <div class="attr"><span>振铃规则：<em>{$vo.strategy_text}</em></span><span>租户：<em>{$vo.site_id_text}</em></span></div>
                <div class="cls"></div>
            </div>
            <div class="bd">
                <div class="exten-list">
                    <div class="attr"><span class="list-hd">分机</span><a href="#" class="lnk_switch">[-]</a><span class="red">总数：<em>{$vo['members_sum']['total']}</em></span><span class="green">空闲：<em>{$vo['members_sum']['idle']}</em></span><span class="orange">振铃：<em>{$vo['members_sum']['ringing']}</em></span><span class="darkred">通话：<em>{$vo['members_sum']['busy']}</em></span></div>			
                    <table cellpadding="0" cellspacing="0">
                        <tr><th class="idx">&nbsp;</th><th class="name">分机号</th><th>通话状态</th><th>累计通话(个)</th><th>距上次通话时间(秒)</th><th>分机状态</th></tr>
                        <foreach name="vo['members']" item="mem" key="mkey">
                            <tr id="m-{$key}-{$mkey}"><td class="idx">{$mkey}</td><td class="name">{$mem.exten_full_name}</td><td>{$mem.call_state_text}</td><td>{$mem.calls_count}</td><td>{$mem.last_ago}</td><td><span class="exten_state_text">{$mem.exten_state_text}</span><span class="exten_state_switch">({$mem.input})</span></td></tr>
                        </foreach>
                    </table>
                </div>
                <div class="income-list">
                    <div class="attr"><span class="list-hd">来电</span><a href="#" class="lnk_switch">[-]</a><span class="red">总数：<em>{$vo['callers_sum']['total']}</em></span></div>			
                    <table cellpadding="0" cellspacing="0">
                        <tr><th class="idx">&nbsp;</th><th class="name">通道号</th><th>等待时间</th></tr>
                        <foreach name="vo['callers']" item="caller" key="ckey">
                            <tr><td class="idx">{$ckey}</td><td class="name">{$caller.channel}</td><td>{$caller.wait}</td></tr>
                        </foreach>
                    </table>
                </div>
            </div>
        </div>
    </foreach>
</div>